//
//  RecommendContainerView.h
//  Happy Kitchen
//
//  Created by mac_chen on 15/3/10.
//  Copyright (c) 2015年 mac_chen. All rights reserved.
//

#import <UIKit/UIKit.h>
//#import "RecommendDetailViewController.h"


@protocol ContainerDelegate <NSObject>

//通过代理传页码
- (void)changePageIndex:(NSInteger)index;

@end

@protocol pushDelegate <NSObject>

- (void)pushAction:(NSInteger)index;

@end


@interface RecommendContainerView : UIScrollView <UIScrollViewDelegate>
//为了使代码低耦合, 自定义一个初始化方法
- (id)initWithFrame:(CGRect)frame images:(NSArray *)images;

@property (nonatomic, assign) NSInteger index;

@property (nonatomic, assign) NSUInteger imagesCount;
@property (nonatomic, assign) NSInteger currentIndex;

@property (nonatomic, strong) UIImageView *imageView;

@property (nonatomic, assign) id<ContainerDelegate>containDelegate;

@property (nonatomic, assign) id<pushDelegate>pushDelegate;

@property (nonatomic, strong) NSTimer *timer;


@end
